import { Okay } from 'uokay'
import App from './components/App.okay'
import Login from './components/Login.okay'
import Register from './components/Register.okay'
import Modify from './components/user/Modify.okay'
import Group from './components/contact/Group.okay'
import HeadBar from './components/HeadBar.okay'
import GroupAdd from './components/contact/GroupAdd.okay'
import Primary from './components/message/Primary.okay'
Okay.components.set('header-bar', HeadBar)
new Okay({
    ele: 'app',
    data: {

    },
    routes: [{
        name:'app',
        route:[{
            path: '/register',
            Component: Register
        },{
            path: '/login',
            Component: Login
        },{
            path: '/',
            Component: App
        },{
            path: '/ucenter/:key/:value',
            Component: Modify
        },{
            path: '/groups',
            Component: Group
        },{
            path: '/groups/add',
            Component: GroupAdd
        },{
            path: '/conversation/primary/:userid/:nickname',
            Component: Primary
        }]
    }]
})